<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">

    <title>用户信息</title>
    <link rel="shortcut icon" href="/img/favicon.ico">
    
    <!-- global stylesheets -->
    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/font-icon-style.css">
    <link rel="stylesheet" href="/css/style.default.css" id="theme-stylesheet">

    <!-- Core stylesheets -->
    <link rel="stylesheet" href="/css/form.css">
</head>
<body>
	<div class="content-inner form-cont">
            <div class="row">
                <div class="col-md-12">
                	<!--***** FORM INPUTS *****-->
                    <div class="card form" id="form">
                        <div class="card-header">
                            <h3>基本信息</h3>
                        </div>
                        <br>
                        <form action="/center/updateBase" enctype="multipart/form-data" method="post">
                        <div class="row">
                            <div class="col-md-6">

                                <div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">真实名称</label>
                                    <div class="col-9">
                                        <input name="realName"  class="form-control" type="text" th:value="${session.user.getRealName()}">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="example-search-input" style="width: 85px;" class=" col-form-label">性别</label>
                                    <fieldset class="form-group">
                                        <div class="form-check">
                                            <label class="form-check-label">
                                                <input name="sex" type="radio" class="form-check-input" value="男" th:checked="${session.user.getSex()=='男'}"> 男
                                            </label>
                                        </div>
                                        <div class="form-check">
                                            <label class="form-check-label">
                                                <input name="sex" type="radio" class="form-check-input" value="女" th:checked="${session.user.getSex()=='女'}"> 女
                                            </label>
                                        </div>
                                    </fieldset>
                                </div>
                                <div class="form-group row">
                                    <label for="example-email-input" style="width: 85px;" class=" col-form-label">Email</label>
                                    <div class="col-9">
                                        <input name="email" class="form-control" type="email" th:value="${session.user.getEmail()}">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">联系地址</label>
                                    <div class="col-9">
                                        <input name="address" class="form-control" type="text" th:value="${session.user.getAddress()}">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">忘记密码问题</label>
                                    <div class="col-9">
                                        <input name="question" class="form-control" type="text" th:value="${session.user.getQuestion()}">
                                    </div>
                                </div><div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">答案</label>
                                    <div class="col-9">
                                        <input name="answer" class="form-control" type="text" th:value="${session.user.getAnswer()}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group row">
                                    <label for="example-datetime-local-input" style="width: 85px;" class=" col-form-label">出生日期</label>
                                    <div class="col-9">
                                        <input name="birth" class="form-control" type="date" th:value="${session.user.getBirthday()}">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="example-number-input" style="width: 85px;" class=" col-form-label">邮编</label>
                                    <div class="col-9">
                                        <input name="postNum" class="form-control" type="text" th:value="${session.user.getPostNum()}">
                                    </div>
                                </div>
<!--                                <div class="form-group row">-->
<!--                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">用户类型</label>-->
<!--                                    <div class="col-9">-->
<!--                                        <input name="type" class="form-control" type="text" th:value="${session.user.getRealName()}">-->
<!--                                    </div>-->
<!--                                </div>-->
                                <div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">身份证号码</label>
                                    <div class="col-9">
                                        <input name="idCardNum" class="form-control" type="text" th:value="${session.user.getId()}">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="example-text-input" style="width: 85px;" class=" col-form-label">联系电话</label>
                                    <div class="col-9">
                                        <input name="phoneNum" class="form-control" type="tel" th:value="${session.user.getPhoneNum()}">
                                    </div>
                                </div>
                            	<div class="form-group">
                                    <label for="exampleTextarea">个人简介</label>
                                    <textarea name="intro" class="form-control" rows="6" th:text="${session.user.getIntro()}"></textarea>
                                </div>
<!--                                <div class="form-group">-->
<!--                                    <label for="exampleInputFile">上传头像</label>-->
<!--                                    <input name="photoAtt" type="file" class="form-control-file" aria-describedby="fileHelp">-->
<!--                                    <small id="fileHelp" class="form-text text-muted">在这里选择你的头像</small>-->
<!--                                </div>-->
                            </div>
                        </div>
                        <button type="submit" class="btn btn-general btn-blue mr-2">提交</button>  
                        <button type="reset" class="btn btn-general btn-white">重置</button>
                        </form>
                    </div> 
                </div>
            </div>
        </div>
    </div>

</body>
</html>